/**
 * 
 */
package com.Hib.Domain;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 * @author Ignatiues charles arun
 * 
 *         Aug 29, 2010
 */
public class CustomerId implements Serializable
	{

		private String countryCode;
		private String idCardNo;

		/**
		 * @param countryCode
		 * @param idCardNo
		 */
		public CustomerId(String countryCode, String idCardNo)
			{
				super();
				this.countryCode = countryCode;
				this.idCardNo = idCardNo;
			}

		/**
		 * @return the countryCode
		 */
		public String getCountryCode()
			{
				return countryCode;
			}

		/**
		 * @param countryCode
		 *            the countryCode to set
		 */
		public void setCountryCode(String countryCode)
			{
				this.countryCode = countryCode;
			}

		/**
		 * @return the idCardNo
		 */
		public String getIdCardNo()
			{
				return idCardNo;
			}

		/**
		 * @param idCardNo
		 *            the idCardNo to set
		 */
		public void setIdCardNo(String idCardNo)
			{
				this.idCardNo = idCardNo;
			}

		public boolean equals(Object obj)
			{
				if (!(obj instanceof CustomerId))
					return false;
				CustomerId other = (CustomerId) obj;
				return new EqualsBuilder().append(countryCode,
						other.countryCode).append(idCardNo, other.idCardNo)
						.isEquals();
			}

		public int hashCode()
			{
				return new HashCodeBuilder().append(countryCode).append(
						idCardNo).toHashCode();
			}
	}
